package cn.sunlight.city.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: City
 * @Description: 城市表
 * @Author: sunlight
 * @Date: 10:42 - 2022/2/10
 * @Version: 1.0
 **/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_address_city")
public class City implements Serializable {

    private static final long serialVersionUID = -3620143861722746953L;

    @Id
    private Integer id;

    private String code;

    private String name;

    private String provinceCode;

    //private Town towns;
    private List<Town> towns;
}
